package cn.com.haopt;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 启动类
 * @author haopt
 */
@SpringBootApplication
@MapperScan("cn.com.haopt.biz.mapper")
public class NettyUdpApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(NettyUdpApplication.class, args);
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(NettyUdpApplication.class);
	}
}
